<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>子选择器</title>
    <style>
        .one > a {
            color: #ff0000;
        }
    </style>
</head>
<body>
    <div class="one">
        <a href="">红色</a>
        <p>
            <a href="">蓝色</a>
        </p>
    </div>
</body>
</html>